import request from '../../utils/request'

// 保存
export const save = (data) => {
  return request('/user/save', 'post', data)
}

// 删除
export const batchDelete = (data) => {
  return request('/user/delete', 'post', data)
}

// 分页查询
export const findPage = (data) => {
  return request('/user/findPage', 'post', data)
}

// 查询机构树
export const findDeptTree = () => {
  return request('/dept/findTree', 'get')
}

// 查询全部
export const findAll = () => {
  return request('/role/findAll', 'get')
}

// 查找用户的菜单权限标识集合
export const findPermissions = (params) => {
  return request('/user/findPermissions', 'get', params)
}



